package serverDB;

import java.io.Serializable;
import java.util.Date;
import java.util.HashSet;
import java.util.Set;
/**
 * container of one row data in File table
 * @author ran
 *
 */
public class File implements Serializable{
	/**
	 * Default serialVersionUID
	 */
	private static final long serialVersionUID = 1L;
	private long fileId = 0 ;
    private String fileName = "";
    private String fileLocation = "";
    private long checkSum=0;
    private Set<Box> boxes = new HashSet<Box>();
    private Set<Tages> tages = new HashSet<Tages>();
    private Date modefiedDate = new Date();
    
    //getters and setters
    public Set<Tages> getTages() {
		return tages;
	}
	public void setTages(Set<Tages> tages) {
		this.tages = tages;
	}
	public void addTag(Tages tag){
		tages.add(tag);
	}
	
    
    public Date getModefiedDate() {
		return modefiedDate;
	}
	public void setModefiedDate(Date modefiedDate) {
		this.modefiedDate = modefiedDate;
	}
	public long getCheckSum() {
		return checkSum;
	}
	public void setCheckSum(long checkSum) {
		this.checkSum = checkSum;
	}
	
	
    
	public Set<Box> getBoxes() {
		return boxes;
	}
	public void setBoxes(Set<Box> boxes) {
		this.boxes = boxes;
	}
	public void addBoxes(Box box) {
		this.boxes.add(box) ;
	}
	public long getFileId() {
		return fileId;
	}
	public void setFileId(long fileId) {
		this.fileId = fileId;
	}
	public String getFileName() {
		return fileName;
	}
	public void setFileName(String fileName) {
		this.fileName = fileName;
	}
	public String getFileLocation() {
		return fileLocation;
	}
	public void setFileLocation(String fileLocation) {
		this.fileLocation = fileLocation;
	}
}
